using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace Galaktika.BI.Extensibility.Dom.Dac
{
    using Galaktika.BI.Extensibility;

    [XmlRoot(Namespace = Galaktika.BI.Silverlight.Common.Namespace)]
    public class BrickQuery : BrickObject
    {
        public BrickQuery()
        {
        }

        public BrickQuery(string name, string query)
            : this(name, query, string.Empty)
        {
        }

        public BrickQuery(string name, string query, string updateScript)
            : base(name)
        {
            this.Query = query;
            this.UpdateScript = updateScript;
        }

        public string Query { get; set; }

        public string UpdateScript { get; set; }
    }
}
